<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>汽车4S店客服管理系统车型配置页面</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="汽车,4S店,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" type="text/css" href="CSS/reMainPage.css"> 
	<link rel="stylesheet" type="text/css" href="CSS/eachCarParam.css"> 
  </head>
  
  <body>
    <% 
    	request.setCharacterEncoding("utf-8");
    	response.setHeader("Content-type", "text/html;charset=UTF-8");
    	response.setCharacterEncoding("UTF-8"); 
    %>
    <%
    	String name=(String)session.getAttribute("name"); 
    	String ident=(String)session.getAttribute("ident");
     %>
    <div class="allbody">
    	<div class="headbody">
    		<div class="maintitle">汽车4S店客服管理系统</div>
    	</div>
    	<div class="mylist" id="mylist">
    		<ul class="prolist">
    			<li><a href="userList">车型信息</a></li>
    			<li><a href="user">个人信息</a></li>
    			<li>
    				<c:if test="${ident!='职工'&&ident!='管理员'}">
    					车型保养维修
    				</c:if>
    			</li>
    			<li>
    				<c:if test="${ident=='用户'}">
    					客服
    				</c:if>
    			</li>
    			<li>
    				<c:if test="${ident!='职工'&&ident!='管理员'}">
    					个人订单
    				</c:if>
    			</li>
    			<c:if test="${ident=='职工'||ident=='管理员'}">
    				<li><a href="pendTask">待处理任务</a></li>
    				<li>增加车型</li>
    				<li>车型试驾订购</li>
    				<li>车型维修保养</li>
    				<li>订单处理</li>
    				<li>总订单</li>
    			</c:if>
    			<c:if test="${ident=='管理员'}">
    				<li>职工信息</li>
    				<li>用户信息</li>
    			</c:if>
    		</ul>
    	</div>
    	<div class="carmain">
    		<c:if test="${sessionScope.name!=null}">
    			<div class="username">
    				欢迎登陆,<%=name%><%=ident%>
    			</div>
    			<div class="closelogin">
    				<a href="javascript:void(0);">退出登陆</a>
    			</div>
    		</c:if>
    		<c:if test="${sessionScope.name==null}">
    			<div class="username">
    				<a href="index.jsp">请登录</a>
    			</div>
    		</c:if>
    		<div class="showMyMess">
    			<div class="car_param">
	    			<c:if test="${sessionScope.mess_car!=null}">
	    				<div class="each_car">
	    						<img alt="图片加载失败"  src="car_image/${mess_car.CAR_IMAGE}">
	    						<div class="neirong">
		    						<span class="carname">车型名称：${mess_car.CAR_NAME}</span>
		    						<span class="cartype">车型级别：${mess_car.CAR_TYPE}</span>
		    						<span class="carmoney">车型价格：${mess_car.CAR_MONEY}万元</span><br>
		    						<span class="cartrade">车型品牌：${mess_car.CAR_BRAND}</span>
		    						<span class="carstate">车型状态：${mess_car.CAR_STATE}</span>
		    						<span class="carsell">车型销量：${mess_car.CAR_SELL}辆</span><br>
		    						<c:if test="${ident!='职工'&&ident!='管理员'}">
	    								<input type="button" value="车型试驾">
		    							<input type="button" value="车型购买">
	    							</c:if>
    							</div>
	    				</div>
	    			</c:if>	
	    			<c:if test="${sessionScope.mess_param!=null}">
	    				<table>
	    					<tr>
	    						<td>发动机型号:</td><td>${mess_param.PARAM_FDJ}</td>
	    						<td>变速箱型号:</td><td>${mess_param.PARAM_BSX}</td>
	    						<td>车身结构:</td><td>${mess_param.PARAM_CSJG}</td>
	    					</tr>
	    					<tr>
	    						<td>车型长度:</td><td>${mess_param.PARAM_LEN}mm</td>
	    						<td>车型宽度:</td><td>${mess_param.PARAM_WIDTH}mm</td>
	    						<td>车型高度:</td><td>${mess_param.PARAM_HEIGHT}mm</td>
	    					</tr>
	    					<tr>
	    						<td>最高车速:</td><td>${mess_param.PARAM_MAXSP}km/h</td>
	    						<td>最小转弯半径:</td><td>${mess_param.PARAM_RADIAL}m</td>
	    						<td>整车质保:</td><td>${mess_param.PARAM_ZCZB}</td>
	    					</tr>
	    					<tr>
	    						<td>等速油耗:</td><td>${mess_param.PARAM_DSYH}L/km</td>
	    						<td>综合油耗:</td><td>${mess_param.PARAM_ZHYH}L/km</td>
	    					</tr>
	    				</table>
	    			</c:if>
	    			<c:if test="${sessionScope.mess_param==null}">
	    				<span>该车型暂无配置信息，详情请咨询客服~</span>
	    			</c:if>
    			</div>
    		</div>
    	</div>
    </div>
    
    <script type="text/javascript"  src="JS/jquery-3.1.0.js"></script>
	<script type="text/javascript"  src="JS/reMainPage.js"></script>
	<script type="text/javascript"  src="JS/eachCarParam.js"></script>
  </body>
</html>
